]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shell-tray: Ensure that only a child can be added
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Wed, 1 May 2024 02:19:34 +0000 (04:19 +0200)
committerJeremy Bícha <jbicha@ubuntu.com>
Mon, 25 Nov 2024 19:12:49 +0000 (14:12 -0500)
Origin: https://gitlab.gnome.org/3v1n0/gnome-shell/-/commits/tray-offscreen-xwindows
Bug-Ubuntu: https://bugs.launchpad.net/bugs/2012388

Gbp-Pq: Topic tray-icons
Gbp-Pq: Name shell-tray-Ensure-that-only-a-child-can-be-added.patch

src/shell-tray-icon.c

index d4c5552c3da751825df143ac21dce108eab3d29b..ec799d2fc3b1eb2f3c6e0930f97effd2f1c8c60d 100644 (file)
@@ -239,6 +239,7 @@ shell_tray_icon_set_child (ShellTrayIcon *tray_icon,
   MetaDisplay *display = shell_global_get_display (shell_global_get ());
 
   g_return_if_fail (tray_icon != NULL);
+  g_return_if_fail (tray_icon->tray_child == NULL);
   g_return_if_fail (tray_child != NULL);
 
   /* We do all this now rather than computing it on the fly later,